class HomeController < ApplicationController
  def index
    @stoves = Array.new(5)
    @user.dishes.each do |dish|  # 按stove_num为下标输出数组
      @stoves[dish.stove_num] = dish
    end
    @view_user = @user
    redirect_to users_path(@user.id)
  end

end
